package com.douqu.game.core.entity.db;

import com.bean.core.buffer.ByteBuffer;
import com.douqu.game.core.config.challenge.InstanceConfig;
import com.douqu.game.core.entity.ext.data.BaseData;
import com.douqu.game.core.factory.DataFactory;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author: Gavin.
 * Description:
 * Date: 2018/2/11 0011 上午 11:05
 * Huan Yu Copyright (c) 2017 All Rights Reserved.
 */
public class LotteryDiamondMuchDB extends LotteryDB {

    public LotteryDiamondMuchDB(int dataKey) {
        super(dataKey);
    }

    public LotteryDiamondMuchDB(int dataKey, int id) {
        super(dataKey,id);
    }

    /**高级抽*/
    public boolean  flag;



    @Override
    public void loadFrom(ByteBuffer buffer)
    {
        super.loadFrom(buffer);
        flag = buffer.readBoolean();
    }

    @Override
    public void writeTo(ByteBuffer buffer)
    {
        super.writeTo(buffer);
        buffer.writeBoolean(flag);
    }

    @Override
    public void addCurrentCount()
    {
        super.addCurrentCount();

        flag = true;
    }


}
